#include <ECommand.h>

ECommand::ECommand()
{
    this->m_state = ECommand::STATE::NORMAL;
}

ECommand::~ECommand()
{
}

void ECommand::setSender(long ptr)
{
    this->m_senderTag = ptr;
}

long ECommand::getSender()
{
    return this->m_senderTag;
}

void ECommand::setSenderName(const EString& str)
{
    this->m_senderName = str;
}

EString ECommand::getSenderName()
{
    return this->m_senderName;
}

void ECommand::setState(ECommand::STATE s)
{
    this->m_state = s;
}

ECommand::STATE ECommand::getState()
{
    return this->m_state;
}

void ECommand::setIfEnableUndo(bool ifEnable)
{
    this->m_ifEnableUndo = ifEnable;
}

bool ECommand::getIfEnableUndo()
{
    return this->m_ifEnableUndo;
}

void ECommand::setItemAdditional(EItemPtr item)
{
    this->m_itemAdditional = item;
}

EItemPtr ECommand::getItemAdditional()
{
    return this->m_itemAdditional;
}
